<template>
  <van-nav-bar
    @click-left="onClickLeft"
    :title="title"
    left-text="返回"
    left-arrow
    v-bind="$attrs"
  >
    <template #right>
      <slot name="right"></slot>
    </template>
  </van-nav-bar>
</template>

<script>
export default {
  props: ['title'],
  created() {},
  methods: {
    onClickLeft() {
      this.$router.go(-1)
    }
  }
}
</script>